#!/usr/bin/env python

import wx

import resource as r
import component as c

class ComboBoxToolBar(wx.ToolBar):
    '''ComboBoxToolBar class
    
    @author Julot <andy.julot@gmail.com>
    @since Friday, February 24, 2012. 09:43 AM'''
    
    def __init__(self, parent):
        style = wx.TB_HORIZONTAL | wx.TB_FLAT | wx.TB_NODIVIDER
        super(ComboBoxToolBar, self).__init__(parent, style=style)
        self.ToolBitmapSize = (16, 16)
        
        self.add = c.ToolBarToolBase(self, r.toolbar.PlusButton.Bitmap,
                                      r.string.view.contacts.add,
                                      r.string.view.contacts.add)
        self.add.disable()
        
        self.remove = c.ToolBarToolBase(self, r.toolbar.MinusButton.Bitmap,
                                        r.string.view.contacts.remove,
                                        r.string.view.contacts.remove)
        self.remove.disable()
        
        self.clear = c.ToolBarToolBase(self, r.toolbar.CrossButton.Bitmap,
                                       r.string.view.contacts.clear,
                                       r.string.view.contacts.clear)
        self.remove.disable()
        
        self.Realize()